home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / filesyst / ext / efsprogs.p12 / efsprogs.p12
Encoding:
Text File  |  1996-11-17  |  10.0 KB  |  303 lines

  1. *** efsprogs11/Makefile    Wed Dec  9 13:49:26 1992
  2. --- efsprogs/Makefile    Sat Jan  2 14:27:09 1993
  3. ***************
  4. *** 1,6 ****
  5.   CC=        gcc
  6.   CFLAGS=        -O -Wall
  7. ! LDFLAGS=    -s -static
  8.   PROGS=        efsck mkefs
  9.   MANPAGES=    efsck.8 mkefs.8
  10.   BINDIR=        /bin
  11. --- 1,6 ----
  12.   CC=        gcc
  13.   CFLAGS=        -O -Wall
  14. ! LDFLAGS=    -s
  15.   PROGS=        efsck mkefs
  16.   MANPAGES=    efsck.8 mkefs.8
  17.   BINDIR=        /bin
  18. ***************
  19. *** 9,15 ****
  20.   all:        $(PROGS)
  21.   
  22.   clean:
  23. !     rm -f $(PROGS) *.o *~ core tmp_make
  24.   
  25.   install:    $(PROGS)
  26.       cp $(PROGS) $(BINDIR)
  27. --- 9,15 ----
  28.   all:        $(PROGS)
  29.   
  30.   clean:
  31. !     rm -f $(PROGS) *.o *~ core
  32.   
  33.   install:    $(PROGS)
  34.       cp $(PROGS) $(BINDIR)
  35. ***************
  36. *** 18,59 ****
  37.       fi
  38.   
  39.   dep:
  40. !     sed '/\#\#\# Dependencies/q' < Makefile > tmp_make
  41. !     for i in *.c; do $(CPP) -M $$i; done >>tmp_make
  42. !     cp tmp_make Makefile
  43.   
  44. ! ### Dependencies:
  45. ! efsck.o : efsck.c /usr/include/stdio.h /usr/include/traditional.h /usr/include/_G_config.h \
  46. !   /usr/include/unistd.h /usr/include/sys/stat.h /usr/include/sys/types.h /usr/include/linux/types.h \
  47. !   /usr/include/linux/stat.h /usr/include/sys/time.h /usr/include/linux/time.h \
  48. !   /usr/include/time.h /usr/include/features.h /usr/include/sys/times.h /usr/include/linux/times.h \
  49. !   /usr/include/sys/utsname.h /usr/include/sys/param.h /usr/lib/gcc-lib/i386-linux/2.2.2d/include/limits.h \
  50. !   /usr/include/limits.h /usr/include/linux/limits.h /usr/include/linux/param.h \
  51. !   /usr/include/sys/resource.h /usr/include/linux/resource.h /usr/include/utime.h \
  52. !   /usr/include/linux/utime.h /usr/include/signal.h /usr/include/linux/signal.h \
  53. !   /usr/include/string.h /usr/include/fcntl.h /usr/include/linux/fcntl.h /usr/include/ctype.h \
  54. !   /usr/include/stdlib.h /usr/lib/gcc-lib/i386-linux/2.2.2d/include/stddef.h /usr/include/errno.h \
  55. !   /usr/include/linux/errno.h /usr/lib/gcc-lib/i386-linux/2.2.2d/include/float.h \
  56. !   /usr/include/alloca.h /usr/include/termios.h /usr/include/linux/termios.h /usr/include/getopt.h \
  57. !   /usr/include/linux/fs.h /usr/include/linux/wait.h /usr/include/linux/dirent.h \
  58. !   /usr/include/linux/vfs.h /usr/include/linux/pipe_fs_i.h /usr/include/linux/minix_fs_i.h \
  59. !   /usr/include/linux/ext_fs_i.h /usr/include/linux/msdos_fs_i.h /usr/include/linux/iso_fs_i.h \
  60. !   /usr/include/linux/minix_fs_sb.h /usr/include/linux/ext_fs_sb.h /usr/include/linux/msdos_fs_sb.h \
  61. !   /usr/include/linux/iso_fs_sb.h /usr/include/linux/ext_fs.h 
  62. ! mkefs.o : mkefs.c /usr/include/stdio.h /usr/include/traditional.h /usr/include/_G_config.h \
  63. !   /usr/include/unistd.h /usr/include/sys/stat.h /usr/include/sys/types.h /usr/include/linux/types.h \
  64. !   /usr/include/linux/stat.h /usr/include/sys/time.h /usr/include/linux/time.h \
  65. !   /usr/include/time.h /usr/include/features.h /usr/include/sys/times.h /usr/include/linux/times.h \
  66. !   /usr/include/sys/utsname.h /usr/include/sys/param.h /usr/lib/gcc-lib/i386-linux/2.2.2d/include/limits.h \
  67. !   /usr/include/limits.h /usr/include/linux/limits.h /usr/include/linux/param.h \
  68. !   /usr/include/sys/resource.h /usr/include/linux/resource.h /usr/include/utime.h \
  69. !   /usr/include/linux/utime.h /usr/include/signal.h /usr/include/linux/signal.h \
  70. !   /usr/include/string.h /usr/include/fcntl.h /usr/include/linux/fcntl.h /usr/include/ctype.h \
  71. !   /usr/include/stdlib.h /usr/lib/gcc-lib/i386-linux/2.2.2d/include/stddef.h /usr/include/errno.h \
  72. !   /usr/include/linux/errno.h /usr/lib/gcc-lib/i386-linux/2.2.2d/include/float.h \
  73. !   /usr/include/alloca.h /usr/include/termios.h /usr/include/linux/termios.h /usr/include/getopt.h \
  74. !   /usr/include/linux/fs.h /usr/include/linux/wait.h /usr/include/linux/dirent.h \
  75. !   /usr/include/linux/vfs.h /usr/include/linux/pipe_fs_i.h /usr/include/linux/minix_fs_i.h \
  76. !   /usr/include/linux/ext_fs_i.h /usr/include/linux/msdos_fs_i.h /usr/include/linux/iso_fs_i.h \
  77. !   /usr/include/linux/minix_fs_sb.h /usr/include/linux/ext_fs_sb.h /usr/include/linux/msdos_fs_sb.h \
  78. !   /usr/include/linux/iso_fs_sb.h /usr/include/linux/ext_fs.h 
  79. --- 18,28 ----
  80.       fi
  81.   
  82.   dep:
  83. !     $(CPP) -M *.c >.depend
  84.   
  85. ! #
  86. ! # include a dependency file if one exists
  87. ! #
  88. ! ifeq (.depend,$(wildcard .depend))
  89. ! include .depend
  90. ! endif
  91. *** efsprogs11/README    Sun Dec  6 19:27:36 1992
  92. --- efsprogs/README    Sat Jan  2 16:45:58 1993
  93. ***************
  94. *** 1,7 ****
  95.                 README file for the ext file system
  96.   
  97. !                 Release 0a11
  98. !                   06.12.92
  99.   
  100.                   Remy  Card
  101.                    (card@masi.ibp.fr)
  102. --- 1,7 ----
  103.                 README file for the ext file system
  104.   
  105. !                 Release 0a12
  106. !                   01.01.93
  107.   
  108.                   Remy  Card
  109.                    (card@masi.ibp.fr)
  110. *** efsprogs11/efsck.8    Sun Dec  6 19:23:38 1992
  111. --- efsprogs/efsck.8    Sat Jan  2 16:50:41 1993
  112. ***************
  113. *** 1,5 ****
  114.   .\" -*- nroff -*-
  115. ! .TH EFSCK 8 "Dec 1992" "Version alpha 11"
  116.   .SH NAME
  117.   efsck \- check a Linux extended file system
  118.   .SH SYNOPSIS
  119. --- 1,5 ----
  120.   .\" -*- nroff -*-
  121. ! .TH EFSCK 8 "Jan 1993" "Version alpha 12"
  122.   .SH NAME
  123.   efsck \- check a Linux extended file system
  124.   .SH SYNOPSIS
  125. *** efsprogs11/efsck.c    Wed Dec  9 13:49:15 1992
  126. --- efsprogs/efsck.c    Sat Jan  2 14:25:04 1993
  127. ***************
  128. *** 1,7 ****
  129.   /*
  130.    * efsck.c - a consistency checker for the extended file system.
  131.    *
  132. !  * Copyright (C) 1992 Remy Card (card@masi.ibp.fr)
  133.    *
  134.    * Copyright (C) 1991 Linus Torvalds. This file may be redistributed as per
  135.    * the GNU copyright.
  136. --- 1,7 ----
  137.   /*
  138.    * efsck.c - a consistency checker for the extended file system.
  139.    *
  140. !  * Copyright (C) 1992, 1993 Remy Card (card@masi.ibp.fr)
  141.    *
  142.    * Copyright (C) 1991 Linus Torvalds. This file may be redistributed as per
  143.    * the GNU copyright.
  144. ***************
  145. *** 131,137 ****
  146. --- 131,141 ----
  147.    *        <schoenw@ibr.cs.tu-bs.de>)
  148.    *  06.12.92  - added the '-b filename' option which reads a bad block list
  149.    *        from the file
  150. +  *  12.12.92  - corrected a minor bug in the free blocks list initialization
  151. +  *        (Thanks to Stephen Tweedie <sct@dcs.ed.ac.uk>)
  152.    *
  153. +  *  01.01.93  - adapted to gcc 2.3.3 / libc 4.2
  154. +  *
  155.    * I've had no time to add comments - hopefully the function names
  156.    * are comments enough. As with all file system checkers, this assumes
  157.    * the file system is quiescent - don't use it on a mounted device
  158. ***************
  159. *** 138,144 ****
  160.    * unless you can be sure nobody is writing to it (and remember that the
  161.    * kernel can write to it when it searches for files).
  162.    *
  163. !  * Usage: fsck [-larvsmdtS] device
  164.    *    -l for a listing of all the filenames
  165.    *    -a for automatic repairs
  166.    *    -r for repairs (interactive)
  167. --- 142,148 ----
  168.    * unless you can be sure nobody is writing to it (and remember that the
  169.    * kernel can write to it when it searches for files).
  170.    *
  171. !  * Usage: efsck [-larvsmdtS] [-b file] device
  172.    *    -l for a listing of all the filenames
  173.    *    -a for automatic repairs
  174.    *    -r for repairs (interactive)
  175. ***************
  176. *** 147,152 ****
  177. --- 151,157 ----
  178.    *    -d for debugging this program
  179.    *    -t for testing bad blocks on the fs
  180.    *    -S for salvaging the free blocks/inodes lists
  181. +  *    -b for reading the bad blocks list from a file
  182.    *
  183.    * The device may be a block device or a image of one, but this isn't
  184.    * enforced (but it's not much fun on a character device :-). 
  185. ***************
  186. *** 158,164 ****
  187. --- 163,171 ----
  188.   #include <fcntl.h>
  189.   #include <ctype.h>
  190.   #include <stdlib.h>
  191. + #include <signal.h>
  192.   #include <termios.h>
  193. + #include <time.h>
  194.   #include <sys/stat.h>
  195.   #include <getopt.h>
  196.   
  197. ***************
  198. *** 1706,1712 ****
  199.   
  200.       if (debug)
  201.           printf ("DEBUG: init_zone_bitmap()\n");
  202. !     for (i = 0; i < ZONES; i++)
  203.           mark_zone (i);
  204.       /* Scan the free blocks list to unmark_zones */
  205.       if (FIRSTFREEBLOCK)
  206. --- 1713,1719 ----
  207.   
  208.       if (debug)
  209.           printf ("DEBUG: init_zone_bitmap()\n");
  210. !     for (i = FIRSTZONE; i < ZONES; i++)
  211.           mark_zone (i);
  212.       /* Scan the free blocks list to unmark_zones */
  213.       if (FIRSTFREEBLOCK)
  214. ***************
  215. *** 1877,1883 ****
  216.       int count;
  217.       char c;
  218.   
  219. !     printf ("efsck version alpha 11 - 09.12.92\n");
  220.       if (argc && *argv)
  221.           program_name = *argv;
  222.       if (INODE_SIZE * EXT_INODES_PER_BLOCK != BLOCK_SIZE)
  223. --- 1884,1890 ----
  224.       int count;
  225.       char c;
  226.   
  227. !     printf ("efsck version alpha 12 - 01.01.93\n");
  228.       if (argc && *argv)
  229.           program_name = *argv;
  230.       if (INODE_SIZE * EXT_INODES_PER_BLOCK != BLOCK_SIZE)
  231. *** efsprogs11/mkefs.8    Wed Dec  9 13:47:45 1992
  232. --- efsprogs/mkefs.8    Sat Jan  2 16:51:03 1993
  233. ***************
  234. *** 1,5 ****
  235.   .\" -*- nroff -*-
  236. ! .TH MKEFS 8 "Dec 1992" "Version alpha 11"
  237.   .SH NAME
  238.   mkefs \- create a Linux extended file system
  239.   .SH SYNOPSIS
  240. --- 1,5 ----
  241.   .\" -*- nroff -*-
  242. ! .TH MKEFS 8 "Jan 1993" "Version alpha 12"
  243.   .SH NAME
  244.   mkefs \- create a Linux extended file system
  245.   .SH SYNOPSIS
  246. *** efsprogs11/mkefs.c    Wed Dec  9 13:49:03 1992
  247. --- efsprogs/mkefs.c    Sat Jan  2 14:24:56 1993
  248. ***************
  249. *** 1,7 ****
  250.   /*
  251.    * mkefs.c - make a linux extended file-system.
  252.    *
  253. !  * Copyright (C) 1992 Remy Card (card@masi.ibp.fr)
  254.    *
  255.    * Copyright (C) 1991 Linus Torvalds. This file may be redistributed as per
  256.    * the Linux copyright.
  257. --- 1,7 ----
  258.   /*
  259.    * mkefs.c - make a linux extended file-system.
  260.    *
  261. !  * Copyright (C) 1992, 1993 Remy Card (card@masi.ibp.fr)
  262.    *
  263.    * Copyright (C) 1991 Linus Torvalds. This file may be redistributed as per
  264.    * the Linux copyright.
  265. ***************
  266. *** 49,54 ****
  267. --- 49,56 ----
  268.    * 09.12.92  -  corrected again (I thought that I had done it) the inode
  269.    *        ratio test.
  270.    *
  271. +  * 01.01.93  -  adapted to gcc 2.3.3 / libc 4.2
  272. +  *
  273.    * Usage:  mkefs [-c] [-i bytes-per-inode] device size-in-blocks
  274.    *         mkefs [-l filename ] [-i bytes-per-inode] device size-in-blocks
  275.    *
  276. ***************
  277. *** 70,75 ****
  278. --- 72,78 ----
  279.   #include <ctype.h>
  280.   #include <stdlib.h>
  281.   #include <termios.h>
  282. + #include <time.h>
  283.   #include <sys/stat.h>
  284.   #include <getopt.h>
  285.   
  286. ***************
  287. *** 600,606 ****
  288.       struct stat statbuf;
  289.       char * listfile = NULL;
  290.   
  291. !     fprintf (stderr, "mkefs version alpha 11 - 09.12.92\n");
  292.       if (argc && *argv)
  293.           program_name = *argv;
  294.       if (INODE_SIZE * EXT_INODES_PER_BLOCK != BLOCK_SIZE)
  295. --- 603,609 ----
  296.       struct stat statbuf;
  297.       char * listfile = NULL;
  298.   
  299. !     fprintf (stderr, "mkefs version alpha 12 - 01.01.93\n");
  300.       if (argc && *argv)
  301.           program_name = *argv;
  302.       if (INODE_SIZE * EXT_INODES_PER_BLOCK != BLOCK_SIZE)
  303.